﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="guoguan.aspx.cs" Inherits="guoguan" Title="过关" MasterPageFile="~/APP_Master/MasterPage_Default.master" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link rel="stylesheet" href="App_Themes/css/webstyle.css"/>
    <link rel="stylesheet" href="App_Themes/css/mod.ggtj.css"/>
    <link rel="stylesheet" href="App_Themes/css/i6Fzam6N7fIj.css"/>
    <script type="text/javascript" src="js/jquery-1.8.0.min.js"></script>    
     <script src="App_Themes/js/jquery.jBox-2.3.min.js" type="text/javascript"></script>
    <script src="App_Themes/js/jquery.jBox-zh-CN.js" type="text/javascript"></script> 
    <link href="App_Themes/css/Blue/jbox.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
    window.onload = function() {
        typeChange();
        $("#li"+<%=lotteryType%>).addClass("gg_top1");
    }
     function   typeChange()
    {
         document.getElementById("iframe").src  = "guoguan_list.aspx?type=" + $('input:radio[name="a1"]:checked').val() + "&qs=" +<%=qs %>+"&lotteryType="+<%=lotteryType %>;
        reinitIframe();
    }
    function   search()
    {
        document.getElementById("iframe").src  = "guoguan_list.aspx?type=" + $('input:radio[name="a1"]:checked').val() + "&qs=" +<%=qs %> +"&userName=" + $("#userName").val()+"&lotteryType="+<%=lotteryType %>;
        reinitIframe();
    }
    function reinitIframe() {
        try{
            var iframe = document.getElementById("iframe");
            if(iframe.attachEvent){
                iframe.attachEvent("onload", function(){
                    iframe.height =  iframe.contentWindow.document.documentElement.scrollHeight-20;
                });
                return;
            }else{
                iframe.onload = function(){
                    iframe.height = iframe.contentDocument.body.scrollHeight-20;
                };
                return;				 
            }	 
        }catch(e){
            throw new Error('setIframeHeight Error');
        }        
    }
</script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

<div id="doc3" style="width:1200px;margin:0 auto;">
  <div class="mod-cz-bd">
    <ul class="gg_top">
      <li id="li1"><a href="guoguan.aspx" >双色球</a></li>
      <li id="li2"><a href="">大乐透</a></li>
      <li id="li5"><a href="">福彩3D</a></li>
      <li id="li3"><a href="">排列三</a></li>
      <li id="li4"><a href="">排列五</a></li>
      <li id="li6"><a href="">七星彩</a></li>
      <li id="li7"><a href="">七乐彩</a></li>      
      <div class="cl"></div>
    </ul>
    <div class="grid-2">
      <div class="article">
        <div class="mod-cz-hm-hd" style="padding: 5px 17px;background: none;">
          <div class="form clearfix">
            <h2 class="name">选择期次：</h2>            
               <asp:DropDownList ID="qsddl" runat="server" AutoPostBack="true"  onselectedindexchanged="qsddl_SelectedIndexChanged" Height="20px" Width="118px" >  
          </asp:DropDownList>            
            <span class="hdr"><b class="lightgray">更新时间</b>：<%=kjTime %>&nbsp;|&nbsp;</span> </div><%--2015-02-28(星期六) 20:30--%>
        </div>
        <div class="mod-cz-hm-bd">
          <div class="mod-cont lottery-details" style="padding-top:0px;">
            <div class="bd">
              <div class="szf-kj-table clearfix">
                <div class="kj-details">
                  <div class="kj-details-list"> <span class="v">开奖号码</span>
                    <div class="k">
                      <div class="kj-date"> <span class="date">第<%=qiShu %></span> <span class="cz-name"> 开奖：</span>
                        <ul class="count-ball-list">
                               <%if (kjNo != null && lotteryType == "1")
                                   {
                                       for (int i = 0; i <= 5; i++)
                                       {%>
                          <li><span class="ico-ball2"><%=kjNo[i] %></span></li>
                            <%}  %>
                          <li><span class="ico-ball2 ico-ball2-blue"><%=kjNoBlue %></span></li>
                            <%}
                      else if (kjNo != null && lotteryType == "2")
                           {
                          for (int i = 0; i <= 4; i++)
                          {%>
                                <li><span class="ico-ball2"><%=kjNo[i] %></span></li>
                             <%}%>
                             <li><span class="ico-ball2 ico-ball2-blue"><%=dltBlue1 %></span></li>
                             <li><span class="ico-ball2 ico-ball2-blue"><%=dltBlue2 %></span></li>
                          <% }
                     else if (lotteryType == "6" && qxcNo!=null)
                           {
                          for (int i = 0; i <= 6; i++)
                          {%>
                                <li><span class="ico-ball2"><%=qxcNo[i] %></span></li>
                             <%}%>
                          <% }
                      else if (qlcNo != null && lotteryType == "7")
                           {
                          for (int i = 0; i <= 6; i++)
                          {%>
                                <li><span class="ico-ball2"><%=qlcNo[i] %></span></li>
                             <%}%>
                             <li><span class="ico-ball2 ico-ball2-blue"><%=qlcBlue %></span></li>
                          <% }
                        else {%>
                             <li>无</li>
                           <% }%>
                        </ul>
                       </div>
                    </div>
                  </div>
                  <div class="kj-details-list"> <span class="v">当前奖池</span>
                      <%if(jiangChiMoney!=0){%>
                    <div class="k"> <span class="date">当期累计：<%=jiangChi %></span><span class="date">目前奖池至少可开出<b class="red"><%=jiangCZ %></b>注<em class="dgray">500</em>万大奖</span> </div>
                   <%  }
                       else {%>
                     <div class="k">  奖 池 为 空</div>
                       <%  }%>
                  </div>
                  <div class="kj-details-list"> <span class="v">全国销量</span>
                    <div class="k">投注总额：<%=sumMoney %></div>
                  </div>
                  <div class="kj-details-list last"> <span class="v">本期奖金</span>
                    <div class="k">
                      <ul class="jj-list">
                        <li><span class="jj-data">一等奖：<%=oneCount %>注，&nbsp;&nbsp;每注<%=oneMoney %>元</span><em class="gray"><%=rule1 %></em></li>
                        <li><span class="jj-data">二等奖：<%=twoCount%>注，&nbsp;&nbsp;每注<%=twoMoney %>元</span><em class="gray"><%=rule2 %></em></li>
                        <li><span class="jj-data">三等奖：<%=threeCount %>注，&nbsp;&nbsp;每注<%=threeMoney %>元</span><em class="gray"><%=rule3 %></em></li>
                      </ul>
                    </div>
                  </div>
                </div>
                <div class="kjtj-box">
                  <div class="kjtj-hd">
                    <h3><i class="ico-tj"></i>彩票米米 <%=lotteryTypeName %>中奖统计</h3>
                    <p>本期共中奖：<%=mysumMoney %></p>
                    <p>已累计中奖：<%=mywinMoney %>&nbsp;&nbsp;<a class="lnk" target="_blank" href="DataCenterDetail.aspx?t=<%=lotteryType %>&tdValue==<%=qiShu.Trim('期') %>">大奖排行榜</a></p>
                  </div>
                  <ul class="kjtj-list" style="display:<%=lotteryType=="7"?"block":"none"%>">
                    <li>一等奖：<em class="red"><%=myoneCount %></em>注</li>
                    <li>五等奖：<em class="red"><%=myfiveCount %></em>注</li>
                    <li>二等奖：<em class="red"><%=mytwoCount%></em>注</li>
                    <li>六等奖：<em class="red"><%=mysixCount %></em>注</li>
                    <li>三等奖：<em class="red"><%=mythreeCount %></em>注</li>
                    <li>七等奖：<em class="red"><%=mysevenCount %></em>注</li>    
                    <li>四等奖：<em class="red"><%=myfourCount %></em>注</li>   
                    <li>&nbsp;</li>                                                                                                                                                                                                     
                  </ul>
                 <ul class="kjtj-list" style="display:<%=lotteryType!="7"?"block":"none"%>">
                    <li>一等奖：<em class="red"><%=myoneCount %></em>注</li>
                    <li>四等奖：<em class="red"><%=myfourCount %></em>注</li>
                    <li>二等奖：<em class="red"><%=mytwoCount %></em>注</li>  
                    <li>五等奖：<em class="red"><%=myfiveCount %></em>注</li>
                   <li>三等奖：<em class="red"><%=mythreeCount %></em>注</li>
                    <li>六等奖：<em class="red"><%=mysixCount %></em>注</li>                    
                    <li>&nbsp;</li>
                                                                                                                                                                                                                         
                  </ul>
                </div>
              </div>
            </div>
          </div>
            
          <div class="tj-cont">
            <div class="tj-hd clearfix">
              <ul class="tj-tab">
              </ul>      
                 <ul class="tj-tab">
                <li class="active">
                  <label>
                    <input type="radio" name="a1" checked="checked" kind="0" onclick="typeChange()" value="0" >
                    <span>成功方案</span></label>
                </li>
                <li>
                  <label>
                    <input type="radio" name="a1" kind="1" onclick="typeChange()" value="1">
                    <span>撤单方案</span></label>
                </li>
                <li>
                  <label>
                    <input type="radio" name="a1" kind="2" onclick="typeChange()" value="2">
                    <span>我的过关</span></label>
                </li>
              </ul>       
              <div class="form fr">
                <input type="text" class="text input-small" id="userName" name="" placeholder="请输入用户名"/>
                <span class="btn-middle search_user" onclick="search()">搜索</span> </div>
            </div>
           <iframe id="iframe"  width="100%" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
          </div>
          
      </div>
    </div>
  </div>      
  <!--end  footer--> 
</asp:Content>
